[#include "/pages/root/tigris-macros.ftl" /]
[@startPage pageTitle="欢迎页"/]

	[@menuPage name="Root" /]
	<div class="rrcc">
		<div class="contnet"></div>
		<div class="right" style="display: block;">
			<div class="right01"><img src=""> 后台管理 &gt; ${pageTitle}</div>
			<div class="userlistwidget">
				 <ul>
	            	<li>
	                	<div class="avatar" style="margin-bottom:20px;"><img alt="" src="[@c.url value='/images/avatar2.png'/]"></div>
	                    <div class="info" style="margin-left:64px;">
	                    	<a href="javascript:;" style="font-size:12px;">版本信息</a>
	                    	<br>版本：${appConfig[_Constants.APP_NAME]} ${appConfig[_Constants.APP_VERSION]}
	                    	<br>授权：${appConfig[_Constants.APP_LICENSE]}
	                    	<br>当前主题：${appConfig['csstheme']}
	                    </div><!--info-->
	                </li>
	                <li>
	                	<div class="avatar" style="margin-bottom:40px;"></div>
	                    <div class="info" style="margin-left:24px;text-align:left;">
	                    	<a href="javascript:;" style="font-size:12px;">服务器信息</a>
	                    	<div style="">	
		                        <table cellspacing="0" cellpadding="0" border="0" class="stdtable" style="">
		                            <thead>
		                                <tr>
		                                    <th class="head0 span1" ></th>
		                                    <th class="head1"></th>
		                                </tr>
		                            </thead>
		                            <tbody>
		                                <tr>
		                                	<td colspan=2 style="">
		                                		[#assign sys=sysInfo.getSystemProps()]
						                    	<br> 当前系统账户：${sys['user.name']}
						                    	<br> 当前操作系统：${sysInfo.getSystemName()} ${sys['os.arch']}  v${sys['os.version']} 
						                        <br> 当前CUP使用率：${monitorInfo.cpuRatio?string('#.0')}%
						                        <br> 总物理内存：${monitorInfo.totalMemorySize?string('###,###')}kb&nbsp;&nbsp;/&nbsp;&nbsp;已使用：${monitorInfo.usedMemory?string('###,###')}kb&nbsp;&nbsp;/&nbsp;&nbsp;剩余：${monitorInfo.freeMemory?string('###,###')}kb
		                                	</td>
		                                </tr>
		                            	<tr>
		                            		<td>时区校准</td>
		                            		<td>${sys['user.timezone']}</td>
		                            	</tr>
		                                <tr>
		                                    <td>用户主目录</td>
		                                    <td>${sys['user.home']}</td>
		                                </tr>
		                                <tr>
		                                    <td>当前目录</td>
		                                    <td>${sys['user.dir']}</td>
		                                </tr>
		                                <tr>
		                                    <td>临时目录</td>
		                                    <td>${sys['java.io.tmpdir']}</td>
		                                </tr>
		                            </tbody>
		                        </table>
	                    	</div>
	                    </div><!--info-->
	                </li>
	                <li>
	                	<div class="avatar" style="margin-bottom:40px;"></div>
	                    <div class="info" style="margin-left:24px;">
	                    	<a href="javascript:;" style="font-size:12px;">Java运行环境信息</a>
	                    	<div style="">
	                    		<table cellspacing="0" cellpadding="0" border="0" class="stdtable" style="">
		                            <thead>
		                                <tr>
		                                    <th class="head0 span1" ></th>
		                                    <th class="head1"></th>
		                                </tr>
		                            </thead>
		                            <tbody>
		                                <tr>
		                                	<td colspan=2 style="">
		                                		<br>Java 版本：${sys['java.version']}
						                        <br> Java 虚拟机：${sys['java.vm.name']}
						                        <br> Java运行环境：${sys['java.runtime.name']}
						                        <br> 虚拟机最大可使用：${monitorInfo.maxMemory?string('###,###')}kb&nbsp;&nbsp;/&nbsp;&nbsp;已使用：${monitorInfo.totalMemory?string('###,###')}&nbsp;&nbsp;/&nbsp;&nbsp;剩余：${monitorInfo.freeMemory?string('###,###')}kb
		                                	</td>
		                                </tr>
		                                <tr>
		                                    <td>安装目录  </td>
		                                    <td>${sys['java.home']}</td>
		                                </tr>
		                                <tr>
		                                    <td>提供商</td>
		                                    <td>${sys['java.vendor']}</td>
		                                </tr>
		                                <tr>
		                                    <td>类路径  </td>
		                                    <td>${sys['java.class.path']}</td>
		                                </tr>
		                            </tbody>
		                        </table>
	                    	</div>

	                    </div><!--info-->
	                </li>
	                <li></li>
	            </ul>
            </div>
			<div style="margin-bottom:1px;" class="contenttitle radiusbottom0">
		    	<h2 class="form" id="vertical"><span>站点列表</span></h2>
		    </div>
			<div>
				[@c.url value="/root/Site_start.action" var='start'][@c.param name="id" value=""/][/@c.url]
    			[@c.url value="/root/Site_stop.action" var='stop'][@c.param name="id" value=""/][/@c.url]
				[@demo.tableDisplayer id="siteTable" renderTo="${renderTo}" ajaxPage="false" property="siteList" pagesize=4 page="/root/index.action" name="FreemarkerTable" config="/pages/component/table/table-sort.ftl" bundle="messageSource" onLoad="alert('ok')"]
					[@demo.column name="id" property="id" title="ID" columnClass="span-tiny" /]
					[@demo.column name="name" property="name" title="名称" columnClass="span2" /]
					[@demo.column name="domain" property="domain" title="域名" columnClass=""/]
					[@demo.column name="baseDomain" property="baseDomain" title="根域名" columnClass=""/]
					[@demo.column name="resPath" property="resPath" title="资源路径" columnClass=""/]
					[@demo.column name="ownerName" property="ownerName" title="持有者" columnClass=""/]
					[@demo.column name="ownerTel" property="ownerTel" title="电话" columnClass=""/]
					[@demo.column name="recordCode" property="recordCode" title="备案号" columnClass=""/]
					[@demo.column name="isClose" property="isClose" title="状态" format="开放:关闭" columnClass="center"/]
					[@demo.column name="status" property="status" title="授权形式" columnClass="center"/]
					[@demo.column name="operate" property="id" title="操作" columnClass="span1-1 center" innerHtml="\la href=\'${start}[#id]\' act='start' class='' \g启动\l/a\g&nbsp;|&nbsp;\la href=\'${stop}[#id]\' act='stop' class='ajax' \g停止\l/a\g&nbsp;" headerClass="batch"/] 	
				[/@demo.tableDisplayer]
			</div>
		</div>
	</div>
[@endPage/]
